CA-142595: [UnitTest] Add tests for the fix
CA-142595: [UnitTest] Add tests for the fix

Add unit tests relating to the fix proposed by Wang Yanbin.

Signed-off-by: Flavien Quesnel <flavien.quesnel@citrix.com>
Reviewed-by: Mate Lakat <mate.lakat@citrix.com>
Imported-by: Thanos Makatos <thanos.makatos@citrix.com>

(cherry picked from commit 42911bbe95829b8cf09a59850ab3300d6a52a359)

chandrikas/sm,pritha-srivastava/sm,germanop/sm,xapi-project/sm,BobBall/sm,robertbreker/sm,geosharath/sm,djs55/sm,martinjorge/sm,robertbreker/sm,martinjorge/sm,xapi-project/sm,siddharthv/sm,martinjorge/sm,xapi-project/sm,djs55/sm,malcolmcrossley/sm,robertbreker/sm,kostaslamda/sm,djs55/sm,geosharath/sm,BobBall/sm,siddharthv/sm,geosharath/sm,chandrikas/sm,siddharthv/sm,BobBall/sm,malcolmcrossley/sm,chandrikas/sm,kostaslamda/sm,pritha-srivastava/sm,pritha-srivastava/sm,germanop/sm,germanop/sm,kostaslamda/sm,malcolmcrossley/sm