review_helper: make it testable