factor out a mixin class for testing tuples