Separated the polygon building from the main test shell.