random nodejs snippets and tests