Added hash unittest