added test for save destroy record