Update code formatting and remove valid role/affiliation checks

Role/affiliation checks are down to XMPP server to error on
Add tests to implement for role get/set