path_test: Add a few new test cases
Sponsored by: The FreeBSD Foundation
(cherry picked from commit b59851e99c20f3a72c34bdf9919e3bf49b894e4e)