Added dev dependencies for tests.
Now issue is effectively replicated in tests by running it 10 times in series.