Fixes failing impulse tests on some browser.
Improves dust test to be more reliable (and stochastic).