simple test and changes to make it possible for UIFactory::init()