updated the test for post req