@gbadner Thanks for the hint. I checked it and realized the limitation of the previous algorithm. I change it, and all tests, including the new one, pass now.