Fixed a bug in the test environment for disabling certain cgroups tests.

Review: https://reviews.apache.org/r/23781