fix RequestHandler tests