add apply_visitor example to variant test