Fix test: actually handle rooting correctly