Test new peg.js hooks