Fixed test helper issue which prevented Rails 4.0.0 from passing