Some tests for grouping and boolean logic