fixed test for record