WHITESPACE change formatting of helper functions in test.js
re-write parallel implementation to fix a failure case with reading from async generator of streams