add polygon gate test driver
implement polygon gate tester