Add test case for detecting hash() collisions