Add some testcases to test some error conditions about pipe's APIs. Signed-off-by: Ningx Zhao <ningx.zhao@intel.com>