solve KaNoi and wordrank test