Add test for scoring function (not complete yet).