Fixed minimizers and their tests.

4 jobs for minimization_tests in 5 minutes and 53 seconds