Rating, type and Votes code + test