tweak test so we can change the type in stack
add tests for path matching