pub fn assert_scopes_eq(
    scopes: Vec<AuthorityScope>,
    scopes_array: [bool; 7]
) -> Result<()>