Fixes missing connection close recognition in connection pool. Adds corresponding test. Test eninge is mocha and further helpers. Adds another test target to the package.json to execute the new test target.