Initial unit tests for CGPath

Includes some fixes for CGPath