Fix regression in test-ui.js. [ci skip]