ConnectionsService, snippets and test cases

ConnectionsService, snippets and test cases