Added 2 unit tests to findPeriodicMaxima