js tests fix according to newest changes