fix and test ConnectionWrapper

- docs