add test for `new` method's abstract error

test for
https://github.com/rails/rails/blob/ad624345e54bd20802de67b2b5c9ef29ecf5d5f4/activerecord/lib/active_record/inheritance.rb#L18