fix some bad code in the hashname generation, better mesh init testing