LPS-40597 Check parent folder permissions before checking file entry permissions
LPS-40597 Fixed existing tests to work with the document library permissions
LPS-40597 Added extra tests for new features and use cases