Handle async tests better.

Wait for them to finish rather than dumping them at the bottom of all
the output.