Added test cases for RT121987

Negated relational operators not chaining correctly.