Develop BaseShardedTestCase

@brmeyer Can you review and push this PR?