tests for losing connection