Build test data from file.