Added missing tests to connection manager, fixed issue with non assoc array being passed to connection