test: add test test_is_disconnected