Pass options to http_router and improve test coverage for special cases.