test: Add tcp client reconnect test.

Issue #72.