switch to expect.js