change parameter validation, add tests, correct one test, geometryFormat...

... instead of f