fixed planepoint example and added a test