fix core.js tests