Add tests for available-all-groups command.