added a test around Integer.MIN_VALUE