Fixed the issue we had with running multiple mocha tests by changing the number of max sockets allowed for http agents to a 1000. Also added a few more server tests and added a couple of checks to avoid saving session data when we are in 'testing mode'.