New test sample for more complex tree specification
Fixed bugs with tree specification through web API, added new test and improved debug output