add some tests
separate read-file from parse-file