test_vectorize uses fmin