added tests and fixed errors for path.py