LocalMaxima fix + test.