grouping test cases when appropriate