polygon testing