Adding foreign key constraints to the default import set. Adding serialisation tests.