Modify Karma test for hash