added tests for nested logic Or/And