Updated delete method and search functions, tests pass