Added test for using pipes and the promise at the same time