added test delete functionality and cleaning up tests