simplify and clarify the test case for shared unions