Fix rating tests. Closes #700