tests: rect polygon test case