Fixed this unit test, we had a race condition where we could get the agentLock before execution starts, thus preventing execution to run any task