Refactored readFromFile(...) to call readFromStream(...) once it has created the stream. The relevant test is likely to still fail on travis-ci.