added test for record