finished and tested genResult