Added tests to logical operators

Exisitng tests pass when bitwise operators are used