Tests/fixes continued stream writing

Also converts testing to using gocheck Asserts