The reason to add Interger.MAX is to test to range of that variable along the way. The same comments apply to many tests below.