sg test script