VariableAttemptVisitor: Fix broken test revealed by 57a6944ea920d5417abb306aef5bf4b0b984ba91