Adding test for Connection API