generateTree() unit test passes now, created a new one for comparing trees