add tests for request dispatching