added examples in test.js for previous commit