Fix a bug of LOGICAL_NOT for constant.
Add a test to find a bug of LOGICAL_NOT for constant.