extract out the building of test data