Test de factorymethod y strategy