Test polygon equality