condition for when maxSockets === true
added maxSockets tests