fixed path tests and implementations
fixes to path handling