Tests for ui.js