1. [FIX BUG] loop counter initialize for va_list
2. [ENHANCE] catch exception in test example