tests for PUT and DELETE