fixed issues in httpeventstream
added unit tests for httpeventstream