writing unit tests for the average_rating method on restaurant.rb