Fix InvalidIntegerException test