add test for POST 500 error