added unit testing for UIComponent