Maybe a `try/finally` block? So the signal is disconnected even if the test fails? Same for `test_not_loaded_model`.