add test case to ensure status code can be set.
path pattern matching