Change permissions mode for test dirs.