written unit test to check that average_rating can return non-integer ratings.