Added some tests for setting the rating
Implemented the setRating method