Create testing for graph dir.py