Fixed bug in pairs, synthetic generation of test