Fix phpunit for dynamic groups