add Streamhandler unittests