Issue #127: Added tests and XML output format.