Fix memory leaks in testing evaluate_chromosomes()