Added tests for consistent hash.