Fix specs to support latest ActiveRecord