How to unit-test asynchronous operations? | Dark Hacker News