Added containsPoint() test and corrected distanceTo() bug.