added SetRootEl + test fixes