Add some mocked unit tests to make sure we call the minimizer in a nice
and tidy way