Test: function updateRating