Add tests of RoleCache