tests: polygon tests