Rails 4 tests fix