Implemented unit test for Angular using Karma and Jasmine.

Introduced a mock Socket.Io object.