better reporting whether the response was sent out completely
fix test