Added unit tests for UiResource