stub passing as constructor's argument