Add fixtures for primary key test
Fix NoMethodError on primary key creation for table update
Remove unnecessary `self`
Add validations for primary key