Test drawing with cache.