test for insideCanvas util