daemon: Add some basic tests for CGroupMonitor

This fixes the previous issue where the tests would fail in mock.