Test for a post request with key-value-pairs.