tundra.tn.document:derive - add more unit tests