PairColorPairNumber combination detection with tests