use assert.js for assertions in Core tests / fix test-promise.js