configurable middleware
test for headers and query params in config