implement WGPE test script