alchemy: named primary key bug tests
alchemy: named primary key bug fix