Added some tests for RootResource-class.