test(chat): Add coverage for httpServer.

Moved global space code out to index.js that isn't necessary to test.