DEVP-2999: refactor js tests