Added test directives stripping from a test script.