moved shared logic to static method for now
fixed unit test after changes in UIComponent
added new constant for memc
second test for UIComponent