One of the reasons black skirts/widows etc are popular is they are extremely adaptable to harder water. Being with platys doesn't bother them - they'll even breed in moderately hard water.. This isn't the old fable about acclimating through generations of captive breeding. This is a fish that never seems to have specialized for any narrow water needs, unlike many other tetras.
The bigger problem if you pop a group into a 20 is how large they grow. Don't base their size on the youngsters sold in stores. They grow.
I wouldn't put G. ternetzi in the group, but there are a number of hardwater tetra species. I've been nibbled on by tetras in rivers with swordtails and mollies in them. Every species is different.