Refactor actionpack ActionDispatch::Request tests