tests: emulate running agent