added test for delete record