Assert root is dirty in embedded tests

Add a missing assertion. Now the assertion actually covers the entire tree.