adding web stag ready event for test and finishing addComponent function