Your test makes no assertions about the permissions on the new file.