fix bug in cell transition and add test
fix bug in cell transition and add test: a task in lifesci-single-cell-spatial-swe-envs-nocap (Harbor dataset). Title: fix bug in cell transition and add test
The task
**Title:** fix bug in cell_transition and add test
Part of scalingX/lifesci-single-cell-spatial-swe-envs-nocap.