added a test for POST and cleaned up the POST response