Fix async_helpers tests
Fix async_helpers tests

Many of the tests were simply executing code and ignoring errors
(including several which had errors in them). This commit makes it so
that errors are actually raised, and fixes the errors in code that had
them.

ipython/ipython,ipython/ipython