add tests for subcase repeat with and without case sharing