added tests with istanbul, mocha