auto_common_spec: use js to test application events