Generalise the integerToInt_smallInteger test (now fromToInteger)