replacing a hash with itself should not return an empty hash