Consider the following conditions:
Let $H$ be a nonempty subset of group $G$. $a, b\in H\Rightarrow (ba)^{-1}\in H$. ($*$)
Since $H\neq\emptyset$, there exits $a\in H$. Then one can use ($*$) $a$ to "generate" the elements in $H$. It seems that one can not finally generate $a^{-1}$ in $H$, though ($*$) is so close to the one-step subgroup test. Can one come up with examples in finite and infinite groups that $H$ is not a subgroup?