argument test type comparison issues - using primary key