tests: add dbgcat() utility method