Added npm test script
Moved the tests to irc.js