network: test for the disconnect function.