Merge "Add the pattern to take case negative output. Add the unit test for pattern."