can run in test mode if pygraphviz can't be imported