If that were the case, you'd think they'd be in the cave with him, instead of wandering around the battlefield at night.
Besides, if he was going to use one against Madara, it would be "secret corpse that scared the crap out of Madara".
Yeah, but that wasn't one of the Pain powers in the first place. At least, not one of the six unique powers that each of the Pains used.