fix tests for non-shadowroot browsers