Added tests for transcript.js using Mocha and Chai

Fixes #105 and #151

Tried to be fairly comprehensive with the tests for transcript, if there's anything you think should be tested that isn't let me know and I can add it in.