Started testing the polygon class. It appears that transformation.transform or transformation.inverseTransform is not working properly