chartbeat: port tests, update mocha
Merge pull request #286 from segmentio/test/chartbeat

chartbeat: port tests, update mocha