Addes test for virtual device when peer socket reconnects. Fixed bug in subscriptions in peer_socket