More tests in the 405 configuration test case.
Made better use for builtin functions.
Added checks that the api is returning the allow header when sending the 405.