Adding unit test for Component::getGlobal method.