Add one more test for primary key; Get a better warning message