fixed test_path.py

Fixes `test_path.py` when run by itself rather than through pytest