test code of BehaviourTree