User role/authority tests and fixes.