test: assert Serve error synchronously after shutdown in TestServe (#1687)