When the object_to_find string contained a special character which the django template system escapes then the test filed because the helpers where looking for the unescaped string. Now they escape the string as well.