daemon: Add some basic tests for CGroupMonitor

Closes #318