update `test/index.js` examples

Made demo code use new `listenables` API in store creation.