Add ActiveRecord 4.1.0 to the test, fix deprecation warning