docs: added tests to node examples

Added test examples so the benefits of di.js are clearer