Add unit tests for union and empty structs.