VX(Li): Add unit tests for the conditional remove.