Write a test to verify RegisterAsyncTask + ThrownExceptions behavior. Fixes #501
Update this out-of-date test