complete unit test for behavior tree.