Allowing to use railties >= 3.1 for testing