Future-proof test for Active Record 4.1+