refactor util
tests for path parser