irc: tests: display output as JSON
irc: tests: rename variable
irc: tests: print total failed tests