Updated unit tests.

Updated to use mocha, should, sinon, and istanbul. Generate coverage reports
using `npm test --coverage`.