Improve createStubComponent by actually returning the stub value.