Add tests for permissions cache
Explicitly set cache timeout for PermissionCacheTests
Merge pull request #1821 from yakky/feature/permissions_cache_tests_23

Feature/permissions cache tests