[+] checking contour for ccw orientation with tests