fix bug with updating root in test.it