Improved java integer tests