testing connection lost / gained