fix test to ensure root tag is always present