add test for new anonymous group permissions, fix set_default_permissions and group tests