Using test groups and profiles to select which tests to run