Testing the optimization module
Fitting test