test for rating update method