Adding tests for async error handling. Note that async error handling by throwing errors in an expectation is not supported (it's not supported for the regular .expect function either)