Added a test for rename the nonempty groups