Remove some unnecessary parentheses.
Add additional unit test for kappa to detect future issues with missing ratings.