Refactor checkbox summary for tests