\documentclass{article}
\usepackage[plain]{automultiplechoice}
\begin{document}

\newcommand{\testsection}[1]{\message{^^JSECTION(#1)^^J}}
\newcommand{\val}[1]{%
\message{^^JVALUEIS(#1)^^J}%
}
\newcommand{\test}[1]{%
\message{^^JVALUESHOULDBE(#1)^^J}%
}

\element{numbers}{\val{0}}
\element{numbers}{\val{1}}
\element{numbers}{\val{2}}
\element{numbers}{\val{3}}
\element{numbers}{\val{4}}
\element{numbers}{\val{5}}
\element{numbers}{\val{6}}
\element{numbers}{\val{7}}
\element{numbers}{\val{8}}
\element{numbers}{\val{9}}

\testsection{(insert|copy)groupfrom}

\insertgroupfrom[2]{numbers}{4}
\test{4}\test{5}

\insertgroupfrom[4]{numbers}{8}
\test{8}\test{9}\test{0}\test{1}

\insertgroupfrom[2]{numbers}{0}
\test{0}\test{1}

\insertgroupfrom[2]{numbers}{-1}
\test{0}\test{1}

\setgroupmode{numbers}{cyclic}

\insertgroupfrom[2]{numbers}{4}
\test{4}\test{5}

\insertgroupfrom[2]{numbers}{-1}
\test{6}\test{7}

\element{letters}{\val{A}}
\element{letters}{\val{B}}
\element{letters}{\val{C}}
\element{letters}{\val{D}}
\element{letters}{\val{E}}

\setgroupmode{letters}{cyclic}

\cleargroup{all}
\copygroupfrom[1]{letters}{all}{1}
\copygroupfrom[2]{numbers}{all}{4}
\copygroupfrom[3]{letters}{all}{3}
\insertgroup{all}
\test{B}\test{4}\test{5}\test{D}\test{E}\test{A}


\end{document}

