Add tests for waiting for a TCP service