Fixed tests

Check Rails version