fix obsolete .findLocalMaxima
add findLocalMaxima tests