Add unit test for nameScore.