Tests for image_cache