DDF-337  added unit tests for ResourceCache