Fix ccw calculation; add test suite for from._ccw