test: refactor mocha tests, add `Connection: close` test