Fixes errors in unit tests caused by #11201.
Fix unit tests
@abose Did all of them pass this time?
Yes all tests passed.
If you noticed that live Preview tests failed, that intermittently happens, usually some timeout issues, but will pass eventually on reruns.
@abose Only 1 live preview test passed for me at first run.
yes i too get that at times, but reruns usually does the trick. Might be some timing issue.