Fixed build for ruby 1.8

See #121
Fixed test_order warning for Rails >4.2.0