update tests : add cgroup and use a loop