Add test for hash consistency

Signed-off-by: Sharif Olorin <sio@tesser.org>