add unit test for stPipe directive