add tests for scoring function