More unit tests for the cfg agent