fixed some typos and now respecting the cache in tests