fixed: UnboundLocalError: local variable 'groups' referenced before assignment
исправлены тест