Partial work on implementing tests.
Some more work on tests.
Set up HUnit tests.
Tests now handle parse errors.
Tests all pass now.