refactor(sync): fix sync/*.js tests