added test for reading from file