implement and test tuple merging
start testing codegen for tuple