test equality of variables