core/demo.js: random.hex test added