fixing some tests around url encoding