Fix tests, add irc handling