Adds tests for connection manager.