test cases and post controller