Register non ActiveRecord::Base classes correctly

After upgrading to v4.7.1 my `before` and `after` hooks stopped working while running my specs for all classes that didn't inherit from `ActiveRecord::Base` (classes stored in `lib` for instance).

I assume there's a valid reason for the `ActiveRecord::Base` inherit check?