Tests for simplify boolean intention
(cherry picked from commit 2192a4e)
Intention and inspection for removing unnecessary parentheses