Switch from expect.js to chai; add more tests