CA-126990: Improved test causing failures on hosts with patches.

Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>