Fix tee_input_spec
Fix a bug in request_handler_spec