unit test for average rating now passes