Convert unit tests to use expect.js

First step towards #88