Fix the tests for file permissions.