Added filename func to path.py w/ tests