align with android api for pipe creation given the model class
update tests to use the new api for pipe creation given the model class