fix js tests