Support for automatically retreiving primary key's value from a secondary key
New test for secondary keys