adds test for the connectio lost case