Fix test for POST requests