Added optional parameter for having a different target on setupComponent...

.... In tests you can specify to which target the component should be attached.