Tests for fit_model and predict.