Added message stanza error tests
Merge branch 'master' into plugins