fixed disconnect test failing on travis 2