Changed 405 response to HEAD request.
Fixed to run test twice.