Cgroups error: cgroup change of group failed

Specifying users and groups works fine when you create a subsystem.

sudo cgcreate -t $USER:$USER -a $USER:$USER  -g cpu:testgroupcpu 

"cgroup change of group failed" error with cgexec from libcgroup