Tests for cacheDependency