Little test refactoring on socket.io mock
#22 bugfix that closes #22