Fixed the test for the class to be an extension of `ActiveRecord::Base` before using `attribute_names` method