Add tests for RequestHandler