fixed RandomScoreFunctionTests