ISPN-4376 AdvancedCache.filterEntries(...) does not respect configured
cache flags

Add tests for Repllicated, Local, and Invalidation modes