unittests for root class