[HELIX-475] Remove code duplication for Zk tests