[core][js] tests initialization