covered all test cases of post