I think that check for the 'test' word may be to hackish, i don't like the idea.
I'm struggling with mocking the _get_format method. The original method is called instead of the mocked one. I think it's a problem with inheritance.
Anyway, I think it's important to have a good test on this because is the only test that ensures us that the signal is emitting with the right information/