[js] tests