fix direction of variable test