Add istanbul code coverage testing

To run code coverage testing, run 
```
npm run cover
```