Adds some tests for cache classes.