Fixed comparison of integers of different signs, tests and examples