Adding tests for UiFactory