Failing test with field name for primary attribute

Declaring a different field name for primary attribute makes includes fail since they try to join using "id"