report code coverage to coveralls

Using istanbul-coveralls

https://github.com/shinnn/istanbul-coveralls
fix test to improve code coverage
use process.stderr.write instead of console.error