bugfix: hash_number copying hash in reverse + add a unit test