add test for reading from file