Add function missing from last commit
Add warning about order of $users array
Test: scope=group needs object_id
First pass at group scope unit tests