Added stub for tests and put in a nicer error msg if a socket.io client was not passed in.