[test] Add a basic test for reconnecting