Updated core.js, few more tests.