refactored PointTest
added javadoc