fixed unit test for root
working on tests