Make tests able to run with most recent ActiveRecord version