Update test to cover custom primary key