Adding test of variable type to visitData