Added tests to logic operations.
Added tests for logic operations.