Added error tolerances to the unit tests for nelder mead.