Added in a delete method and accompanying tests