Add tests for triples() and zero_based