Create a test suite

I've added a test suite using mocha as the test runner and istanbul for code coverage, I hope this is helpful.