Fix unit test failure with "permission denied"