Fix Rails 4 testing