Rails 4 test fix