Added sparse connect utility function to pubsub test utilities for creating test networks with configurable connectivity.