cpp: test: Remove vexing parse in variant test