added test for different symbol
clear array of Leaf to NULL

Signed-off-by: 9drashijin <9drashijin@live.com>