refactor remove POST test to test case