Fixed Scipy error in model tests