Merge pull request #21 from stdweird/streamhandler

streamhandler fix
Merge pull request #22 from stdweird/streamhandler

add Streamhandler unittests
Merge branch 'master' into streamhandler