add test for calc_score() and update()