added test for localMaxima with emptyList