Fixed ARIMport tests and other issues highlighted by the tests