basic tests for caching functionality. Issue #22