enhance unit test
Try to write convert function from PostGIS