Fixed a broken unit test and a potential bug with population breeding.