fixing wrong n_eqns value in test var_sign