added more path functions and tests for them