test case for post