Unit testing how to know if the post result has success