adding tests
added embedded event stream
cleaning up stream API a bit