fixed tests to work with connection manager