Fixed the unit tests for the NioConnection and NioSocketServer