bug 916677 - unit tests for read_from_file(). r=sfink