split out the test data function in a seperate file