added some tests for connections