shad/MT: minor fixes in test script