[api] Corrected accessible groups, fixing a test