fixed unit tests so they all pass, still needs fixing the nsga2 function and some examples