[test] reconnection logic