added average rating spec and made tests pass