Add test for negative open connection count (JAVA-349)