Added debug variable to debug.py, added server test cass to digraph.py