TEsts fixing, tests 37,38, waiters implementation, change logic of agent
addition