Fix unary operator expected error on boolean test