Test BooleanNode's equality/reference equality