Fixed unit tests to work correctly if run under root user - root has rw permissions granted to all dirs/files and x permissions to those files which have x permission for at least one of the owner/group/others