[#2270] updates to ilsresc --tree and unit test