ANN test for fminunc