use chai and chai as promised instead of expect.js