Add RootAgent tests