Use 0666 for test permission bits since this seems to work on Windows and Unix