There are plenty of situations which are borderline or depend on perspective (or possibly hidden knowledge). These generally come down to what the GM and/or group finds reasonable. Maybe you say that the god in question cares more about what's in someone's heart than the ultimate result of their actions; or maybe you decide that the god only sees things in absolute terms and doesn't care about motivation. So if a paladin were to free an imprisoned evil lich who was using powerful illusion magic to seem like an innocent child, that's probably an evil act in the absolute sense, but a god who cares about motivations would realize that the paladin thought he was freeing an innocent child and might consider it a good act instead. If the paladin is devastated when he finds out what he did, then such a god would probably say that's okay and not cut him off; if he just shrugs and says "oh well, it seemed right at the time" then a god might be more inclined to say that he's not such a paragon of good afterall. Incidentally, if I were the GM ruling on Turn Undead vs. the Undying Court, I'd say that undead fueled by positive energy rather than negative energy would be rebuked by paladins and clerics channeling positive energy, and turned by clerics channeling negative energy (i.e. the opposite of traditional undead fueled by negative energy). But unless the Undying Court are paladin-esque (namely, they get their power directly from a parton deity), I'd think that their alignment wouldn't matter at all; they could commit evil acts and even be evil without losing their animation, just like normal undead can commit good acts and even be good.