Avoid race conditions on task sup tests
Agent implementation