Mocking the post request