Tests: refactor group with helpers