Added entity authorization and adjust test with
new xml.