Testing new PopulationFunction class.