Support for tests and rails4