Add unit test for HTCondor parser

- Add unit test for HTCondor parser which just checks the basic parser as
  initially committed.
- Tidy up the parser a little.