making unit test resilient to different umasks (on OSX and Arch for instance)