tests for logic operators