test read from file