Making tests pass in rails 4