unit test command pipe