Added test for sent goal to agent