fix StreamResponse namespace; add tests;