doc,tools,test: lint doc-based addon tests
Modify doc-based addon tests (from addon doc examples) so that they pass linting.
Fixes: https://github.com/nodejs/node/issues/5424
This is perhaps an alternative (or follow-on) for https://github.com/nodejs/node/pull/5425.
/cc @TheAlphaNerd