testing the server handle_request