Added a test for the genetic algorithm.