Thorough test of triples()
For #1-unittest