tests for connection