Test cases for nextPredicateCombineOrder + addPredicate()

Failing test case for #6800 
No need for the `(` and `)`