Fix output comparison in variablechecking