added a test to the delete method