Suppose the set of residues $A=\{\bar 1, \bar 3, \bar 4, \bar 5, \bar 9\}$, $f(x,y)=x*y$, $\mathbb Z_{11}$ so the group is $G=\{A, f\}$ in $\mathbb Z_{11}$. The identity is $\bar 1$ as demonstrated by $\bar 3 *\bar 4=\bar{12} =\bar 1$. Suppose $\phi(x,y)=e^{x+y}$ where $e$ is the euler number to test the group homomorhism identity preserving theorem here. Now $B=\{e^{\bar 1}, e^{\bar 3}, e^{\bar 4}, e^{\bar 5}, e^{\bar 9}\}$. So the intended group is $H=\{B,\phi\}$ in $\mathbb Z_{e^{11}}$ but $e^{\bar 9+\bar 9}=e^{\bar {18}}=e^{\bar 7}\not \in B$ so B not group.
Why is the $B$ not group? Does the group homomorphism identity theorem work in modular arithmetic?