Refactor Post related tests to different test case.