test/hash: init parameters in the correct function