Add tests for request handler