Change mode of a test file