serve: docstring and clearer test