change function def self.table_name to self.table_name

change def self.primary_key to self.primary_key

change def self.primary_key to self.primary_key
Merge pull request #11593 from rajcybage/fix_test_models

change function def self.table_name to self.table_name