Added error handler for async proxies
extended tests