a cleaner way to write async tests.