added unit tests for connection initialization, closing & recycling