implemented hashpackettest API -- cf. expr.c