Read file in test.