Fix incorrect comparison logic and update tests
Fix incorrect comparison logic and update tests: a task in life-science-SWE1.0 (Harbor dataset). Title: Fix incorrect comparison logic and update tests
The task
**Title:** Fix incorrect comparison logic and update tests
Part of scalingX/life-science-SWE1.0.