More tests for foreign key mapping