updated test for nested tags with same name