test case for graph caching
not ready, work on it later
pickling a graph has a problem