Add tests for permissions cache
Removed unused imports
Merge pull request #1825 from yakky/feature/permissions_cache_tests_24

Feature/permissions cache tests for #1792