Rails 3.x: Fix to work tests.