Change file mode for test script.