Clean up hash test code