Split out hash function and added placeholder test.