add test for consistent hashes

came out of work in #46

it'd be good to have a test for this for regressions in the future