reduce number of agents in nelder mead optimization test (sometimes time outs occured in CI)

8 jobs for nelder_mead_test in 168 minutes and 38 seconds (queued for 1 second)