test delete functionality