madara was surprised to be revived by edo tensei. There is much he didnt plan for(such as naruto being as strong as he is, and obito starting the plan early etc)
However, the amount of backup planning he did, was quite crazy. But he did have many years to plan it out(since he was stuck immobile with the gedo, until obito arrived.
But i enjoy madaras character.
People didnt take what he said seriously(such as hashi being strong enough to stop edo rinnegan madara)(stop not defeat)
He brings more conflict, and entertainment to the manga, because while he is still a villian, he is still fighting obito and alliance.
Plus he gives us more knowledge/observations we need, so small minded people dont go crying "plothole" over everything, just because it hasnt been explained.