fixed record exists test error