Utility functions to create fake sets of connections for testing, and then exercising the subset filtering code to check that quantities come out as expected.