added unit tests for gitpath