unit test delete function