CTCP formatting tests and bugfix.