Fix nested tags. Add more converter tests