passes logical operator tests