tests for primary key setter and getter