[test] Added test for reconnecting after timeout