TEST: unit test for pathspec comparison