fixed a test for hash key randomization