adds tests for delete method