Fix bugs in the input test of arima_forecast (all cases passed)