Restore permission of test files