adds leaf add function for unit tests