make the tests pass after migrating to rails4