Fix test failure in Rails 4 due to routing and session store.