removed bugs in rating unit tests