Failing tests for calling endpoint with incorrect methods.
Corrected failing tests.
Refactoring.
Refactoring.