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
[tex]\frac{\partial f}{\partial y}= \frac{\partial g}{\partial x}[/tex]
which the same as saying
[tex]curl \vec{f}= \nabla\times\vec{f}= \vec{0}[/tex] where
[tex]\vec{f}= f(x,y)\vec{i}+ g(x,y)\vec{j}[/tex].
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?