update unit tests and make sure that we return the right permissions for files within a shared folder and for the shared folder itself