[BUG] Fix failing tests for sundials. [skip ci]