/effect doesn't work on the wither and the ender dragon
When you summon a wither(boss) and try to give him an effect via the /effect command, the chat message says, that the effect has been applied, where in fact it hasn't. because when you try to remove said effect via "/effect @e[type=WitherBoss] clear" it states that it doesn't have any effects applied to remove.