fix bug in pipe test and add esprima