Initial commit of mocha unit tests and istanbul code coverage