Fix script test
Refactor paths into common interface
Add ability to easily request paths in and outside roles