FilterPrefixPath() and test code