Listing 2.5 An implementation of test grouping