testData reader implemented in dataGenerator class