Cache class tests