implemented assert.js and mock.js