spec: js_spec: add enumerate callback test