tests for reassoc and rehash