Can a caster that knows this spell use it to become a Ravener?
Ravener is a template, so no. Per the PRD: "Polymorph spells cannot be used to assume the form of a creature with a template or an advanced version of a creature."
Fortunately there still are several nice undead -- unfortunately you'll never be mistaken for one of them with these spells unless it's by a peasant that had too much alcohol, the number of abilities you do not get is quite large.