Fix js tests