updated conditional get test script