Updated test-and-train-data-from-domains to ensure that the test and training sets are a disjoint union of the input set