Fix test failures caused by different umask settings