Add missing logic operators and add test for nested logic expressions.