Added unit test to test handling of operator precedence.