refactors test for GET
refactors test for POST
refactors test for PUT
refactors test for DELETE
refactors test for OPTIONS
refactors test for HEAD