Add constructor test for leaf node