Ported tuple impl, factory and test