Factored sequential_s from test-stub-stream.
Moved sequential_s to dedicated module, added unit test.