Fix test failure: Avoid comapring `unsigned` and `int`