Refactor reputation tests