Thanks for the report!
You should notice that when you clicked ‘test3’, the editor scrolled to the ‘test 3’ heading correctly, and it was briefly highlighted, but then then the wrong element will be highlighted in the outline panel (‘test 2’) until you scroll down slightly.
It’s kind of a minor bug because of that, but I’ll see about getting a fix out for it 👍