Updated PHPunit algorithm tests