Testing the groupname() method