agent: remove unnecessary sleep from tests
Merge pull request #829 from jonboulle/agent_tests

agent: remove unnecessary sleep from tests