pulled test support logic into its own part
midstream updates for supporting test with multiple tables via transitive closure of foreign keys (making sausage)