Fix tests for mongodb using env var for db connection string
Mocking using sinon for Socket used in SocketHandler (collaboration)