RFE#919: Multiple-column foreign key relation.

Signed-off-by: Ashutosh Dhundhara <ashutoshdhundhara@yahoo.com>

Fix failing tests.

Signed-off-by: Ashutosh Dhundhara <ashutoshdhundhara@yahoo.com>