improved delete request, added unit tests