reworked the test generation function
removed default vector type
performance improvement in polygon