Move StubStream from test-helpers to livedata. It is only used in livedata tests.
Rename establishConnection to be more test-y. Also comment on inappropriate placement.
Remove trailing whitespace.