Finish polygon drawing on double click
Add test