Get, new and tree working with doctest - thanks @ricardodani