extracting a method to call gpu_hash
adding a base test case for counting hash values