tests: add some plumbing for sharded cluster tests.