Fixed problem where running in command line mode would fail because of
attempted GUI graphics access.
Fixed problem with JUnit test for command line mode.  Tests were not
being actually run.
Fixed XML and TXT handling in JUnit test to properly compare.