add red tests.
remove the old code and comment.
refactor test.
fix test.
clean unused opens and variables.
Merge pull request #193 from bleis-tift/master

Fix ParseOneFile