Add test case per PR comment. Covers both /foo/bar (success) and /bar (failure).