Should this test be moved to server/test/unit/server/managers/consumer/test_agent.py?  Also, this is largely doing integration rather than unit tests.