Test case for fromInteger