putting all parsing code into unit test for completeness.