Add the test command in the parser.
Fix term testing and implement command :test.
Use built-in tests instead of XML files.
Add a debug command, mostly for the exception backtrace during the tests.