Add some error condition or testing cases to verify whether the robustness of API. Such as give a NULL to some API and check the response if get result that we were expacted. Signed-off-by: Jian Kang <jianx.kang@intel.com>