Add some barn-agent.cpp tests.