Fix path-permission tests.

Broken because of regex instead of prefix matching.  Also made test
clearer.

Bug: 6332123
Change-Id: Id5cf802b14940eac84620f6eb79399ef7fb93528
2 files changed