make tests handle async functions
tests no longer verify err inside callbacks (todo)