added test for create record