Refactoring of tuplet tests