Tests and docs for esprima fix