Added a test case to handle when a peer disconnects and a new one

connects afterwards.