format problem indentified. add a small test code

test with a square which has four points.