Migrated cache testing.
Added --doctest-modules.