RAM test method