templatified test.
template for testing abelian groups. I keep forgetting to commit when the code is interesting...