tests for Connection