refactor test to drop unnecessary hash creation, test directly instead
Merge pull request #9759 from vipulnsward/remove_hash_from_tests

refactor test to drop unnecessary hash creation, test directly instead