Lol you are probably close!
We know the Senju and Uchiha formed an alliance. My guess is that Tobirama created it as part of a way to try and seal the deal of the alliance AKA: Bring back Izuna Uchiha.
However, upon seeing his brother under the orders of Tobirama, Madara couldn't stand it...