add gen test script
check consistency of outputs