add hash and test