Fix environment and system groups test