unit test for connection more than max