Create test-store.js

testing the store in a module context

please check the code before running it, cause it's a raw copy-paste  with comments added....