nitester-wrapper: test if the target hash is valid

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>