Unit Tests

- Set well-known umask for permissions test. When started with another
  umask value the permissions of the created directory would be
  different and the tests fail.