Test with reading from file