implemented and tested getRating route and controller method