[BACKLOG-350] Fixes the tests so that the reducers are closed and their ...

...buffer empties before the assertions are done.