Basic unit tests for PointerUnion