Test variable conditions outside the dom