add test callback to js_spec