Fixed exception throwing from async methods. Test added.