It would help if you would cite the "curl test" you are talking about. I think you are referring to the fact that a two variable differential, f(x,y)dx+ g(x,y)dy, is an "exact differential", that is, that there exist F(x,y) such that dF= f(x,y)dx+ g(x,y)dy, if and only if
\frac{\partial f}{\partial y}= \frac{\partial g}{\partial x}
which the same as saying
curl \vec{f}= \nabla\times\vec{f}= \vec{0} where
\vec{f}= f(x,y)\vec{i}+ g(x,y)\vec{j}.
It follows from that that the integral of f(x,y)dx+ g(x,y)dy around any closed path is 0 and that the integral from one point to another in the xy-plane is independent of the path. Which of those are you referring to?