Tests for Connection class