test disconnect after signal destruction

Test that a connection is disconnected after the signal is destroyed.