Simplify addCap() function.
Fix drawing of closed path with only one segment.
Implement test for strokeBounds of closed path with only one segment.
Use comparePoints() helper in Point tests.
Better format Point#getDirectedAngle() tests.
Define test for issue #344