Update esprima dependency & add tests