[test] test pipe.js hook