add test for score_by_rules method