Add initial tests.
Add isConnected property to the socket manager.
Change the test a bit.