Fixed tests when user is the root.

Mocked read permissions in the unit tests.
Either "from the root user" or "as root" or "as root user."