1837, corrected tests
1837, fixed defect when root name not in input
AC for 1837