Implemented Root.UnitTest

Also implemented unit tests using the new module.