implement TE test script