Move duplicate tests into shared example group