Public worker api so this module is useful for tests too

You can return from a promise with the same effect (you can also chain promises) [i.e. this code does what you expect]