added tests for localMaxima