Test working for one group not multiple