added tests for localMaxima and histogram