test: Wrap hash free to increase coverage to 93.0%

Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com>