Implemented unit test for Angular using Karma and Jasmine.

Implemented unit test for Angular using Karma and Jasmine and introduced a mock Socket.Io object.