Tell me if I'm wrong here, but I think the correct thing you try to test is to allow the callback to be optional, i.e. the call should not raise any exception if a callback is not provided.