refactor stream parsing logic into method
added mocha test for response parsing
Add code coverage setup