DEVP-2849: refactor js tests