Test cleaner nextLeavingEdge method