test for POST, PUT, PATCH