I ran these tests on 400 different size images and found various cases where tests were failing because the tolerances were off by just one or two. So here and elsewhere, the tolerance values passed to verifyImage() have been increased just a bit.