add a spec for server#handle_input