Revert "tests/api: fix issue with multivalue dict"

This reverts commit 9250d548229f3e3d864c187708324d91e9591359.
api: fix for urlencoded case