basic test for connection class