Added unit tests for the handleHttpMethods middleware.