unit test for returning 405 on asking access token with wrong method