Fixed bug with rehashing collisions and expanded tests accordingly.