tests for connection manager