fix tests again
add tests for average_rating