We've had a series of bugs relating to roles, many of them caused by bad fixes to previous bugs.
Add tests for as many as possible of these cases:
Active
3.0
Code