Added test function to read in data from file