added a delete method and a couple tests