fix tests, use querystring encoding (like fireplace does) instead of json