add test code for irc_plugin.c